name = 'yejing'
age = 8

# 字符串格式化输出
print('name is %s, age is %d' % (name, age))


# 使用模板输出格式化的字符串
print('name is {0}, age is {1}'.format(name, age))
print('name is {name}, age is {age}'.format(name=name, age=age))